﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YJKRevitAxisModule
{
	public class WallFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem.Category != null && !(null == elem.Category.Id) && (-2000011 == elem.Category.Id.IntegerValue || -2003500 == elem.Category.Id.IntegerValue);
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
